<?php
use yii\helpers\Html;
$this->title = '登陆日志';
?>
<div class="container">
	<div class="row">
		<?php echo $this->render('_leftnav');?>
		<div class="col-md-10">
			<div class="page-header clearfix">
				<h1 class="pull-left">登录日志</h1>
				<div class="pull-right"></div>
			</div>
			<?php echo $this->render('_indexnav');?>
			<div class="well well-sm">
				<form id="login-record-search-form" class="form-inline" action="" method="get" novalidate=""> 

				<div class="form-group">
					<select id="keywordType" name="keywordType" class="form-control">
						<option selected="selected" value="nickname">用户名</option><option value="email">邮件地址</option>
					</select>
				</div>

				<div class="form-group">
					<input id="keyword" name="keyword" class="form-control" placeholder="关键词" type="text">
				</div>

				<div class="form-group">
					<input class="form-control" id="startDate" name="startDateTime" placeholder="起始时间" type="text">
				</div>

				<div class="form-group">
					<input class="form-control" id="endDate" name="endDateTime" placeholder="结束时间" type="text">
				</div>
				<span></span>

				<button class="btn btn-primary">搜索</button>
				</form>
			</div>

			<table id="teacher-table" class="table table-striped table-hover" data-search-form="#user-search-form">
				<thead>
					<tr>
						<th>用户名</th>
						<th>用户邮箱</th>
						<th>登录时间IP</th>
						<th>登录地点</th>
						<th width="12%">查看记录</th>
					</tr>
				</thead>
				<tbody>
					<tr id="user-table-tr-14">
						<td>
							<strong>
								<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/14">体验管理员</a>
							</strong>
						</td>
						<td>
							545829994@qq.com
						</td>
						<td>
							<span class="text-sm">2015-11-17 07:43:15</span>
							<br>
							<a class="text-muted text-sm" href="http://www.baidu.com/s?wd=114.249.235.255" target="_blank">114.249.235.255</a>
						</td>
						<td>
							北京
						</td>
						<td>
							<a href="#modal" data-toggle="modal" data-url="/admin/login_record/14/details" class="btn btn-default btn-sm">查看</a>
						</td>
					</tr>
					<tr id="user-table-tr-">
						<td>
							<strong>
								<span class="text-muted">用户已删除</span>
							</strong>
						</td>
						<td>
						</td>
						<td>
							<span class="text-sm">2015-9-16 10:38:54</span>
							<br>
							<a class="text-muted text-sm" href="http://www.baidu.com/s?wd=122.234.164.229" target="_blank">122.234.164.229</a>
						</td>
						<td>
							浙江杭州
						</td>
						<td>
							<a href="#modal" data-toggle="modal" data-url="/admin/login_record//details" class="btn btn-default btn-sm">查看</a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>